#include"FuncStruct.h"
#include"stdio.h"

int JudgeSymme(Info map, TurnInfo turnInfo)
{
	int i,j;
	for(i=0;i<turnInfo.length;i++)
		for(j=0;j<turnInfo.length;j++)
			if(map.matrixArr[turnInfo.y-turnInfo.length/2+i][turnInfo.x-turnInfo.length/2+j]!=map.matrixArr[turnInfo.y-turnInfo.length/2+(turnInfo.length-1-i)][turnInfo.x-turnInfo.length/2+(turnInfo.length-1-j)])
				return 0;
	for(i=0;i<turnInfo.length;i++)
		for(j=turnInfo.length-1;j>=0;j--)
		if(map.matrixArr[turnInfo.y-turnInfo.length/2+i][turnInfo.x-turnInfo.length/2+j]!=map.matrixArr[turnInfo.y-turnInfo.length/2][turnInfo.x-turnInfo.length/2])
		return 1;
		return 2;
}